<?php

class ctrl_firadio_php_admin_sys_tablelist extends ctrl_firadio_php_admin_common {

    public function action_list() {
        // 默认的排序
        $this->table->defaorder = 'tablelist.id ASC';
        // 要读取的字段
        $this->table->field = 'tablelist.enable,tablelist.id,tablelist.field,tablelist.defaorder,tablelist.numperpage,tablelist.pagenumshown,menuclass.name menuclassname,menuclass.title menuclasstitle';
        // 获取查询列表
        $this->tablelist = $this->table->getList();
        return($this->getdata());
    }

    public function action_info() {
        // 要读的条件
        $this->table->whereid = $_GET['id'];
        // 要读取的字段
        $this->table->field = 'tablelist.enable,tablelist.field,tablelist.defaorder,tablelist.numperpage,tablelist.pagenumshown,tablelist.infofield,menuclass.projmoduleid,menuclass.parentid';
        // 获取查询列表
        $this->tableinfo = $this->table->getInfo();
        return($this->getdata());
    }

}